package io.renren.sf.service.impl;

import io.renren.sf.vo.BookToUnitVo;
import org.springframework.stereotype.Service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import io.renren.sf.dao.CbTypefaceDao;
import io.renren.sf.entity.CbTypefaceEntity;
import io.renren.sf.service.CbTypefaceService;


@Service("cbTypefaceService")
public class CbTypefaceServiceImpl extends ServiceImpl<CbTypefaceDao, CbTypefaceEntity> implements CbTypefaceService {

    @Override
    public List<BookToUnitVo> getBookAndChapterByEditionId(Long editionId) {
        return baseMapper.getBookAndChapterByEditionId(editionId);
    }

    @Override
    public Long getUnitIdById(Long id) {
        return baseMapper.getUnitIdById(id);
    }
}